"""celery 实例"""
from celery import Celery

app = Celery('project')
app.config_from_object('project.configs')

packages = [
    'project.common',  # 通用任务
    'project.sms',  # 短信任务
]
app.autodiscover_tasks(packages)  # 将自动查找每个包下的tasks.py文件
